import request from "../../utils/request";
import API from "../api";
import { CategorySubDataType, SelectCategorySubPostData, SelectCategorySubResponse } from "./type";


// 获取二级目录商品
export const reqCategorySub = (id: string) => request.get<any, CategorySubDataType>(API.CATEGORYSUB + `?id=${id}`)


// 筛选二级目录商品
export const postSelectCategorySub = (data: SelectCategorySubPostData) => request.post<any, SelectCategorySubResponse>(API.CATEGORYSUBFILTER, data)